<?php

namespace app\common\validate;

use think\Validate;

class Login extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'loginType|登录场景'                     => 'require|between:1,3',
        'miniappLoginCode|小程序登录Code'        => 'require',
        'miniappMobileCode|小程序手机号授权Code' => 'require',
        'mpLoginCode|公众号登录Code'             => 'require',
    ];
    /**
     * 提示消息
     */
    protected $message = [
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'login' => ['loginType'],
    ];

}